package com.woniu.consumer.entity;

/**
 * @author SuperYu  2024/9/26
 */
public class Product {
    private Integer id;
    private String name;
    private double price;
    private String port;


    private Category cate;

    public Product() {
    }

    public Product(Integer id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public Product(Integer id, String name, double price, Category cate) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.cate = cate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Category getCate() {
        return cate;
    }

    public void setCate(Category cate) {
        this.cate = cate;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", port='" + port + '\'' +
                ", cate=" + cate +
                '}';
    }
}
